# class Person(object):
#     __name = ''  #私有变量--姓名
#     __age = 0   #私有变量--年龄
#     __sex = ''   #私有变量--性别
#     #基类必须继承于object，否则在派生类中将无法使用super()函数
#     def __init__(self, name, age, sex):
#         self.setName(name)
#         self.setAge(age)
#         self.setSex(sex)
#     def setName(self, name):
#         if not isinstance(name, str):
#             print('姓名必须是字符串或汉字')
#         self.__name = name
#     def setAge(self, age):
#         if not isinstance(age, int):
#             print('年龄必须是整数')
#         self.__age = age
#     def setSex(self, sex):
#         if sex != 'man' and sex != 'woman' and sex != '男' and sex != '女':
#             print('性别必须为"man" "woman" "男" "女"之一')
#         self.__sex = sex
#     def show(self):
#         print(self.__name, end=" ")
#         print(self.__age, end=" ")
#         print(self.__sex, end=" ")
# class Student(Person):
#     __major = ''  #私有变量--专业
#     def __init__(self, name, age, sex, major):
#     #调用基类构造方法初始化基类的私有数据成员
#         super(Student, self).__init__(name, age, sex)
#         self.setMajor(major)
#     #初始化派生类的数据成员
#     def setMajor(self,major):
#         if not isinstance(major, str):
#             print('姓名必须是字符串或汉字')
#         self.__major = major
#     def show(self):
#         super(Student, self).show()
#         print(self.__major)
# if __name__ == '__main__':
#     Zhangsan = Person('Zhangsan', 17, '男')
#     Zhangsan.show()
#     print()
#     Lisi = Student('Lisi', 20, 'woman', 'Math')
#     Lisi.show()
#     Wangwu=Student('Wangwu', 30, 'man', 'Computer')
#     Wangwu.show()

# import numpy as np
# A = np.array([[1, 1], [0, 1]])
# B = np.array([[2, 0], [3, 4]])
# print(A*B)

# import matplotlib.pyplot as plt
# import numpy as np
# x = np.linspace(0, 10, 1000)  # 设置自变量格式
# y = np.sin(x) + 1  # 设置因变量y
# z = np.cos(x**2) + 1  # 设置因变量z
# plt.figure(figsize=(8, 4))  # 设置图像大小
# plt.plot(x, y, label="sinx+1", color='red', linewidth=2)  # 作图（x,y），设置标签格式
# plt.plot(x, z, label="cosx^2+1")  # 作图（x，z）
# plt.xlabel('Time(s)')  # 设置x轴名称
# plt.ylabel('Volt')  # 设置y轴名称
# plt.title('A simple Example')  # 设置表格标题
# plt.ylim(0, 2.2)  # 显示的y轴范围
# plt.legend() # 显示图例
# plt.show()  # 显示作图结果

# imag = [1,2,3,4]
# imag2 = [22,22,33,33]
# def display():
#     print(imag)
# def modify():
#     imag = imag2
# modify()
# display()

from shutil import *
from glob import glob
print('BEFORE:', glob('some.txt'))
move(r'D:\some.txt ', 'C:')
print('AFTER:',glob('some.txt'))